package com.hsnn.medstgmini.model;

public enum IsLongtimePlan {
	TimePlan(0,"临时备案"),LongPlan(1,"长期备案");
	private int key;
	private String value;
	private IsLongtimePlan(int key, String value) {
		this.key = key;
		this.value = value;
	}
	public static String getName(int key) {
		for (IsLongtimePlan status : IsLongtimePlan.values()) {
			if (status.key == key) {
				return status.value;
			}
		}
		return "";
	}
	public int getKey() {
		return key;
	}
	public void setKey(int key) {
		this.key = key;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
}
